package com.intellij.licensecommon.data;

import com.intellij.licensecommon.util.LicenseDecoder;
import com.intellij.licensecommon.util.LicenseInfo;
import com.intellij.licensecommon.util.a;

public class SubscriptionLicenseDataImpl extends AbstractSubscriptionLicense {
    public static boolean i = false;

    public SubscriptionLicenseDataImpl(String key, String username) {
        super(key, username);
    }

    public static SubscriptionLicenseDataImpl create(String key, String username) {
        return new SubscriptionLicenseDataImpl(key, username);
    }

    @Override
    protected LicenseInfo getLicenseInfo() throws a {
        return LicenseDecoder.decodeLicenseKey(getUsername(), getKey());
    }
}

